package org.holynite.fieldmanage.entities

import javax.persistence.EmbeddedId
import javax.persistence.Entity
import javax.persistence.Table

/**
 * Created by midnite on 15/1/14.
 */
@Entity
@Table(name = "field_customer_type")
class FieldCustomerType {
	@EmbeddedId
	FieldCustomerTypePK fctpk

	boolean equals(o) {
		if (this.is(o)) return true
		if (getClass() != o.class) return false

		FieldCustomerType that = (FieldCustomerType) o

		if (fctpk != that.fctpk) return false

		return true
	}

	int hashCode() {
		return (fctpk != null ? fctpk.hashCode() : 0)
	}
}
